import request from '@/utils/request'

/**
 * 查询省
 * @param params
 * @returns {AxiosPromise}
 */
export function getLqlProvinceList(params) {
  return request({
    url: '/hnm/hx/api/detailed/address/lqlProvinceList',
    method: 'get',
    params
  })
}

/**
 * 查询市
 * @param params
 * @returns {AxiosPromise}
 */
export function getLqlCityList(params) {
  return request({
    url: '/hnm/hx/api/detailed/address/lqlCityList',
    method: 'get',
    params
  })
}

/**
 * 查询区、县
 * @param params
 * @returns {AxiosPromise}
 */
export function getLqlCountyList(params) {
  return request({
    url: '/hnm/hx/api/detailed/address/lqlCountyList',
    method: 'get',
    params
  })
}

/**
 * 查询镇、街道
 * @param params
 * @returns {AxiosPromise}
 */
export function getLqlKeepDownList(params) {
  return request({
    url: '/hnm/hx/api/detailed/address/lqlKeepDownList',
    method: 'get',
    params
  })
}

/**
 * 网格主建户申请保存接口(提交)
 * @param data
 * @returns {AxiosPromise}
 */
export function submitBuildHousesApply(data) {
  return request({
    url: '/hnm/hx/api/build/houses/submitBuildHousesApply',
    method: 'post',
    data
  })
}

/**
 * 网格主建户申请保存接口(暂存)
 * @param data
 * @returns {AxiosPromise}
 */
export function saveBuildHousesApply(data) {
  return request({
    url: '/hnm/hx/api/build/houses/saveBuildHousesApply',
    method: 'post',
    data
  })
}

/**
 * 营业执照信息查询接口
 * @param params
 * @returns {AxiosPromise}
 */
export function picMessageToLook(params) {
  return request({
    url: '/hnm/hx/api/build/houses/picMessageToLook',
    method: 'post',
    params
  })
}

/**
 * 诚信通接口查询客户风险等级（外部）
 * @param data
 * @returns {AxiosPromise}
 */
export function getCustomerCxtInfo(data) {
  return request({
    url: '/hnm/hx/api/build/houses/getCustomerCxtInfo',
    method: 'post',
    data
  })
}

/**
 * 万链企业名称获取企业列表
 * @param params
 * @returns {AxiosPromise}
 */
export function selectWorkMessageList(params) {
  return request({
    url: '/hnm/hx/api/build/houses/selectWorkMessageList',
    method: 'get',
    params
  })
}

/**
 * 万链企业名称获取详情
 * @param params
 * @returns {AxiosPromise}
 */
export function selectWorkMessage(params) {
  return request({
    url: '/hnm/hx/api/build/houses/selectWorkMessage',
    method: 'get',
    params
  })
}

/**
 * 暂存企业信息查询
 * @param params
 * @returns {AxiosPromise}
 */
export function pageOneAdd(params) {
  return request({
    url: '/hnm/hx/api/build/houses/apply/pageOneAdd',
    method: 'get',
    params
  })
}

/**
 * 暂存图片信息查询
 * @param params
 * @returns {AxiosPromise}
 */
export function pageThreeAdd(params) {
  return request({
    url: '/hnm/hx/api/build/houses/apply/pageThreeAdd',
    method: 'get',
    params
  })
}

/**
 * 暂存建户信息查询
 * @param params
 * @returns {AxiosPromise}
 */
export function pageTwoAdd(params) {
  return request({
    url: '/hnm/hx/api/build/houses/apply/pageTwoAdd',
    method: 'get',
    params
  })
}

/**
 * 申请审批提交信息更新接口
 * @param data
 * @returns {AxiosPromise}
 */
export function updateApply(data) {
  return request({
    url: '/hnm/hx/api/build/houses/updateBuildHousesApply',
    method: 'post',
    data
  })
}

// 建户审批详情查询
export function applyMessage(params) {
  return request({
    url: '/hnm/hx/api/build/houses/applyMessage',
    method: 'get',
    params
  })
}
